package org.farm2.view.service;

import org.farm2.view.domain.GraphDto;
import org.farm2.view.domain.GraphPart;
import org.farm2.tools.db.DataQuery;
import org.farm2.tools.db.DataResult;

import java.util.List;

/**图组件 
 * @author cbtg自动生成  2025-8-29 9:10:02 
 */
public interface GraphPartServiceInter {

    public GraphPart insertGraphPartEntity(GraphPart graphPart);

    public GraphPart editGraphPartEntity(GraphPart graphPart);

    public void delGraphPart(String id);

    public GraphPart getGraphPartById(String id);

    public List<GraphPart> getGraphParts(DataQuery query);

    public DataResult searchGraphPart(DataQuery query);

    public int getGraphPartNum(DataQuery query);
    
    public int getNum(DataQuery query);

    public GraphPart addGraph(GraphDto graph);

    public String getDataJson(String datafileid);

    public GraphPart editGraph(GraphDto graph);
    /*[tree：树形结构使用]
    public void moveTreeNode(List<String> ids, String id);
    
    void autoSort(List<String> ids);
    */
}
